package cn.yangliu.nacos.gateway.remote.hystrix;

import cn.yangliu.nacos.comm.JsonResult;
import cn.yangliu.nacos.gateway.model.Oauth2TokenInfo;
import cn.yangliu.nacos.gateway.remote.Oauth2Service;
import org.springframework.stereotype.Component;

/**
 * The interface Oauth 2 fallback.
 *
 * @author 问道于盲
 * @date 2019 -12-14
 */
@Component
public class Oauth2Fallback implements Oauth2Service {
    /**
     * Check token json result.
     *
     * @param token the token
     * @return the json result
     */
    @Override
    public JsonResult<Oauth2TokenInfo> checkToken(String token) {
        return JsonResult.getInstance(500, "faild");
    }
}
